﻿using GroupMeal.Groups;
using GroupMeal.Standards;
using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace GroupMeal.Orders
{
    /// <summary>
    /// 成员订单
    /// </summary>
    public class MemberOrder : AuditedEntity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 租户ID
        /// </summary>
        public virtual Guid? TenantId
        {
            get; set;
        }

        /// <summary>
        /// 会员ID
        /// </summary>
        public virtual Guid MemberId
        {
            get; set;
        }

        /// <summary>
        /// 日期
        /// </summary>
        public virtual DateTime Date
        {
            get; set;
        }

        /// <summary>
        /// 标准ID
        /// </summary>
        public virtual Guid? StandardId
        {
            get; set;
        }

        /// <summary>
        /// 点餐标准
        /// </summary>
        public virtual Standard? Standard
        {
            get; set;
        }

        /// <summary>
        /// 组织订单ID
        /// </summary>
        public virtual Guid GroupOrderId
        {
            get; set;
        }

        /// <summary>
        /// 组织订单
        /// </summary>
        public virtual GroupOrder GroupOrder
        {
            get; set;
        }

        /// <summary>
        /// 支付模式
        /// </summary>
        public virtual PayMode PayMode
        {
            get;set;
        }

        /// <summary>
        /// 详情
        /// </summary>
        public virtual List<MemberOrderDetail>? OrderDetails
        {
            get;set;
        }
    }
}
